Skip to content

Conversation

@janhoy
Copy link
Collaborator

@janhoy janhoy commented Oct 26, 2025

No description provided.

Repository owner deleted a comment from github-actions bot Oct 26, 2025
janhoy and others added 4 commits October 26, 2025 13:54
Folded security policy and best practices into the Deployment Guide
under a "Security Considerations" section placed after troubleshooting.
This keeps the document focused on simple deployment steps first, with
more advanced topics and security details at the end.

Changes:
- Moved security content to end of DEPLOYMENT.md (after troubleshooting)
- Updated CONTRIBUTING.md to reference DEPLOYMENT.md#security-considerations
- Deleted SECURITY.md to eliminate duplicate documentation

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
…mments

Enhanced the changelog suggestion comments with:
- Added instruction: "To re-generate this suggestion, delete this comment and make a new commit"
- If skip-changelog-labels are configured, show a line: "You can skip my suggestions by adding one of these labels to the PR: xxx, yyy"

Applied to both:
- _format_suggestion_comment() for generated entries
- _format_legacy_conversion_comment() for converted legacy entries

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
Repository owner deleted a comment from github-actions bot Oct 26, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review with suggested changes

- Implemented strict enforcement that prevents lying in your changelog entries (#391) (Oscar Hernandez)
- Lorem ipsum dolor
this should be suggested removed
even if it's many lines (#111) (Jon Blow, Jane Snow)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was converted to logchange format. Let's remove it.

Suggested change
even if it's many lines (#111) (Jon Blow, Jane Snow)

@github-actions
Copy link

🔄 I've converted the legacy changelog entry to logchange format!

I detected a change to CHANGELOG.md and converted it to the logchange format below.

Suggested Logchange Entry for changelog/unreleased/pr-18-legacy-changelog-paths-default-to-changelog-md.yml:

title: Legacy changelog paths default to CHANGELOG.md
type: changed
description: |
  Lorem ipsum dolor
  this should be suggested removed
  even if it's many lines
authors:
  - name: Jon Blow
  - name: Jane Snow
issues:
  - 111

What to do next:

  1. Create the logchange entry:

    • Create a new file at changelog/unreleased/pr-18-legacy-changelog-paths-default-to-changelog-md.yml
    • Copy the YAML above into it
  2. ⚠️ Remove the legacy changes:

    • I've added suggested edits to remove the lines you added to CHANGELOG.md
    • Review the suggestions in the PR review and accept them
  3. 📝 Review before merging:

    • Check the generated entry is accurate
    • Adjust if needed
    • Feel free to edit the logchange YAML

Why?
This project uses logchange format for changelog entries, not the traditional CHANGELOG.md format. Using logchange ensures consistency and better tooling support.

When users manually edit legacy changelog files, the bot now suggests:
1. Restoring any removed lines (commented on LEFT side of diff)
2. Removing any added lines (commented on RIGHT side of diff)

This ensures users don't manually edit these files - they should use
the logchange format instead.

Changes:
- Added extract_removed_lines_with_positions() method to detect removed lines
- Updated create_review_comment_with_suggestion() to accept 'side' parameter
  for commenting on removed (LEFT) or added (RIGHT) lines
- Enhanced _post_legacy_removal_suggestions() to handle both types of changes
  and post separate comments for each group of consecutive lines

For example, if a user removes lines 35-37 and 47-50, then adds lines 48-50,
the bot will make 3 comments:
1. Restore lines 35-37
2. Restore lines 47-50
3. Remove lines 48-50

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
@janhoy janhoy merged commit 7687501 into solrbot:main Oct 26, 2025
2 of 4 checks passed
@janhoy janhoy deleted the trigger-10 branch October 26, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant